package com.example.demo.pattern.strategy;

import org.springframework.stereotype.Service;

@Service
public class OperationSubstract implements Strategy {
    @Override
    public String getType() {
        return "subtract";
    }

    @Override
    public int doOperate(int num1, int num2) {
        return num1 - num2;
    }
}
